package com.wanxi.education.service;


import com.github.pagehelper.PageInfo;
import com.wanxi.education.model.vo.catalogue.CatalogueVo;
import com.wanxi.education.model.vo.course.*;
import com.wanxi.education.model.vo.history.HistoryAcceptVo;
import com.wanxi.education.model.vo.history.HistoryVo;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface CourseFrontService {
    PageInfo<CourseHomeVo> findPageForHome(CourseFindPageVo courseFindPageVo);

    CourseByIdVo findByIdToHome(Long courseId);

    List<CatalogueVo> findCatalogueByCourseId(Long courseId);

    PageInfo<CourseHomeVo> findPageForPersonage(CourseFindPageForPersonageVo courseFindPageForPersonageVo);

    void addHistory(AddHistoryVo addHistoryVo,Long userId);

    List<CatalogueVo> findCatalogueByCourseIdForPersonage(Long courseId);

    List<HistoryVo> findHistoryForPersonage(HistoryAcceptVo historyAcceptVo);

    List<CourseHomeVo> findCarouselForHome();

}
